const router = require('koa-router')()

const { DBpathLocal, DBpathOnLine} = require("../models/config")

const mongoose = require("mongoose")

mongoose.connect(DBpathOnLine, {
  useNewUrlParser: true
})
.then( res => {
  console.log("MongoDB is connected !");
  
})
.catch( err => {
  console.log("error connected !");
  
})
module.exports = router
